package com.shanhai.log.common.entity;

import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class ShanHaiInterfaceLog {
    /**
     * 操作名称
     */
    private String operationName;

    /**
     * 操作类型
     */
    private String operationType;

    /**
     * 运行状态
     */
    private String state;

    /**
     * 操作开始时间
     */
    private Date startTime;

    /**
     * 操作结束时间
     */
    private Date endTime;

    /**
     * 操作耗时
     */
    private long takeUpTime;

    /**
     * 方法类型
     */
    private MethodData methodData;

    /**
     * 请求类型
     */
    private RequestData requestData;

    /**
     * 响应类型
     */
    protected ResponseData responseData;

    public ShanHaiInterfaceLog() {
        this.methodData = new MethodData();
        this.requestData = new RequestData();
        this.responseData = new ResponseData();
    }
}